<?php
/**
 * PHPUnit测试配置
 * @author liuhui 2009-6-12
 *
 */
define('DS', DIRECTORY_SEPARATOR);
define('WEB_ROOT', dirname(dirname(__FILE__)));

$path = array();
$path[] = '.';
$path[] = WEB_ROOT;
$path[] = WEB_ROOT . DS . 'modules' . DS . 'libs';
app_set_include_path($path);

function app_set_include_path ($paths) {
    set_include_path(implode(PATH_SEPARATOR, $paths));
}

require_once 'PHPUnit/Util/Filter.php';
PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');

require 'PHPUnit/TextUI/Command.php';